package creator.factory.normal;

public abstract class AbsOrderPizzaFactory {

    public Pizza getPizza() {
        Pizza pizza = createPizza();
        if (pizza != null) {
            pizza.prepare();
            pizza.bake();
        }
        return pizza;
    }

    protected abstract Pizza createPizza();

}
